package work.shyk;

/**
 * description： <br>
 * createTime: 2019/7/1110:55 <br>
 *
 * @author zzh
 */
public class TestAvailableCpu {

    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        System.out.println("availableProcessors : " + runtime.availableProcessors());
        System.out.println("maxMemory: " + runtime.maxMemory());
        System.out.println("freeMemory: " + runtime.freeMemory());
        System.out.println("totalMemory: " + runtime.totalMemory());
    }
}
